package com.qiaofang.housewarehouse.stub.facade;

import com.qiaofang.housewarehouse.stub.request.HouseQueryDetailRequest;
import com.qiaofang.housewarehouse.stub.request.SaleHouseQueryRequest;
import com.qiaofang.housewarehouse.stub.response.SaleHouseQueryDetailListResponse;
import com.qiaofang.housewarehouse.stub.response.SaleHouseQueryDetailResponse;
import com.qiaofang.housewarehouse.stub.response.SaleHouseQueryResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "housewarehouse",url="${feign.url.housewarehouse}")
//@Api(tags = "SaleHouseQuery", value = "出售房源接口", description = "出售房源接口")
@RequestMapping(value = {"/SaleHouseQuery"})
public interface SaleHouseQueryFacade {

 //   @ApiOperation(value = "出售房源list", response = SaleHouseQueryResponse.class)
    @RequestMapping(value = "/searchSaleHouseList", method = RequestMethod.POST)
    SaleHouseQueryResponse searchSaleHouseList(SaleHouseQueryRequest saleHouseQueryRequest);

  //  @ApiOperation(value = "出售房源详情", response = SaleHouseQueryDetailResponse.class)
    @RequestMapping(value = "/getSaleHouseDetail", method = RequestMethod.POST)
    SaleHouseQueryDetailResponse getSaleHouseDetail(HouseQueryDetailRequest saleHouseQueryRequest);

}
